<?php

use Illuminate\Routing\Router;
use Illuminate\Support\Facades\Route;
use App\Http\Controllers\Web\MaterialController;

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/
Route::match(['get', 'post'], 'material-query', [MaterialController::class, 'index'])->name('material-query');
//Route::get('material-query', [MaterialController::class, 'index'])->name('material-query');
//Route::post('material-query', [MaterialController::class, 'index'])->name('material-query');
Route::get('material-report', [MaterialController::class, 'detail'])->name('material-report');
//Route::get('material-query', '\App\Http\Controllers\Web\MaterialController@index');
//Route::namespace('Web')
//    ->group(function () {
//        Route::get('material-query', 'MaterialController@index');
//    });
//Route::group(['namespace'=>'Web'], function (\Illuminate\Routing\Router $router) {
//    $router->get('material-query', 'MaterialController@index');
//});
//Route::get('material-query', function () {
//    return view('material-query');
//});
